import request from '@/utils/request'

// 查询历史业绩列表
export function listCompete_enterprise_project(query) {
  return request({
    url: '/business/compete_enterprise_project/list',
    method: 'get',
    params: query
  })
}

// 查询历史业绩详细
export function getCompete_enterprise_project(projectId) {
  return request({
    url: '/business/compete_enterprise_project/' + projectId,
    method: 'get'
  })
}

// 新增历史业绩
export function addCompete_enterprise_project(data) {
  return request({
    url: '/business/compete_enterprise_project',
    method: 'post',
    data: data
  })
}

// 修改历史业绩
export function updateCompete_enterprise_project(data) {
  return request({
    url: '/business/compete_enterprise_project',
    method: 'put',
    data: data
  })
}

// 删除历史业绩
export function delCompete_enterprise_project(projectId) {
  return request({
    url: '/business/compete_enterprise_project/' + projectId,
    method: 'delete'
  })
}
